package wxshop.api.user.dto;


import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by yvdedu.com on 2018/1/25.
 */
public class Dto {
	public static String tint(){
		Date date = new Date();
		return String.valueOf(date.getTime());
	}
	
	public static String millisToString(String timeMillis){
		Date date = new Date(Long.parseLong(timeMillis));//字符串转时间戳
		return new SimpleDateFormat("yyyy年MM月dd日 hh:mm:ss").format(date);//时间戳格式化
	}
}
